package com.cdks.wuxiu.api.service.mysql;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cdks.wuxiu.api.model.dto.UserScoreDTO;
import com.cdks.wuxiu.entity.mysql.UserScoreInfo;


/**
 * 用户积分 服务类
 */
public interface UserScoreInfoService extends IService<UserScoreInfo> {
    UserScoreDTO getBalanceByUser(long userId, long expire);

    List<UserScoreInfo> getByUserId(long userId, int page, long start, long stop);

    int decByUserId(long userId, long minId, long maxId, long cost, long now);
    int addScore(long userId, long score, int type, long expire, String remark);
}
